home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POINT Software Programming
/
PPROG1.ISO
/
pascal
/
swag
/
records.swg
/
0013_Getting Record Offsets.pas
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1995-03-26
|
298 b
|
21 lines
{
> Does anyone know how I can find and use the offset of
> a given field in a record?
AFAIK, you can only use BASM for that. example:
}
type
XXX=record
A,B,C:byte;
end;
var
W:word;
begin
asm
mov ax,XXX.A
mov W,ax
end;
{ W holds now the offset of A in XXX }
end.